﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>wom - App List</title>
</head>
<body>
    <a href="/content/Mithril.Server/Mithril.Server.application?account={{ account.key }}">Mithril.Server</a><br />
    <i>{{ account.user.nickname }}, created {{ account.created }}</i> <a href="{{ logout_url }}">Logout</a><br />
    key: {{ account.key }}<br />
    id: {{ account.key.id }}<br />
    name: {{ account.key.name }}<br />
    <div>
    {% for server in servers %}
      {{ server.active }}
      {{ server.name }}  
      [ {{ server.ip_address }} ]
      Success = {{ server.success_count }},
      Failure = {{ server.failure_count }}
      {% ifequal server.owner.key account.key %} 
        <a href='/service/app/delete?account={{account.key}}&server={{server.key}}'>Delete</a> 
        <a href='/service/app/update?account={{account.key}}&server={{server.key}}'>Update</a> 
      {% endifequal %}
        <a href='/service/app/success?account={{account.key}}&ip_address={{server.ip_address}}'>Success</a> 
        <a href='/service/app/failure?account={{account.key}}&ip_address={{server.ip_address}}'>Failure</a>       
      <br />
    {% endfor %}
    </div>
</body>
</html>
